package com.example.mybatisdemo.service;

import com.example.mybatisdemo.mapper.HouseMapper;
import com.example.mybatisdemo.model.Comment;
import com.example.mybatisdemo.model.House;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zwzheng
 * @Classname housService
 * @Description TODO
 * @Date 2021/2/24 11:46
 * @Version V1.0
 */
@Service
public class HousService {

    @Resource
    private HouseMapper houseMapper;

    public List<House> getHouseById(Integer houseId){
        List<House> houses = houseMapper.selectAllHouseComment(houseId);
        return houses;
    }


    public House selectOneHouseComment(Integer houseId){
        House house = houseMapper.selectOneHouseComment(houseId);
        return house;
    }

}














